package com.aaa.service.impl;

import com.aaa.entity.UMS_Menu;
import com.aaa.mapper.UMS_MenuMapper;
import com.aaa.service.UMS_MenuService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UMS_MenuServiceImpl extends ServiceImpl<UMS_MenuMapper, UMS_Menu> implements UMS_MenuService {

    @Resource
    UMS_MenuMapper ums_menuMapper;

    @Override
    public List<UMS_Menu> selectUserPage(Page<UMS_Menu> paged) {
        Page<UMS_Menu> jobInfoPage = ums_menuMapper.selectPage(paged, null);
        List<UMS_Menu> records = jobInfoPage.getRecords();
        return records;
    }
}
